import { Controller, Get } from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { SysDictService } from './sys_dict.service';
import { SysDictKey } from '../shared/enum';

@Controller('sys_dict')
@ApiTags('系统字典模块')
export class SysDictController {
  constructor(private readonly sysDictService: SysDictService) {}

  @Get('app/download')
  @ApiOperation({ summary: 'app下载链接' })
  getAppDownloadLink() {
    return this.sysDictService.getSysDictValue(SysDictKey.appDownloadLink);
  }
}
